import os

path = 'data/tmp'
if not os.path.exists(path):
    os.mkdir(path)

for i in range(1, 11):
    dirx = os.path.join(path, str(i))
    if not os.path.exists(dirx):
        os.mkdir(dirx)
